FROM golang:latest
MAINTAINER jiang_yi_bo@sinzuo.com

RUN apt-get update \
	&& useradd -d /home/tozedsoft -m -s /bin/bash tozedsoft \
        && usermod -a -G sudo tozedsoft \
        && echo tozedsoft:123456 | chpasswd \
 	&& apt-get install -y openssh-server
  
RUN mkdir -p /var/run/sshd
RUN ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
COPY ./createCorba.sh /root/
WORKDIR /root/
RUN sh createCorba.sh
ENV FORCE_UNSAFE_CONFIGURE 1
CMD ["/usr/sbin/sshd","-D"]
